package org.chris.model;

import java.util.Comparator;

import org.chris.model.items.UrlSuggestionItem;

/**
 * Comparator for UrlSuggestionItem.
 * 
 * @author 翔
 * 
 */
public class UrlSuggestionItemComparator implements
		Comparator<UrlSuggestionItem> {

	@Override
	public int compare(UrlSuggestionItem obj1, UrlSuggestionItem obj2) {
		Float value1 = new Float(obj1.getNote());
		Float value2 = new Float(obj2.getNote());
		return value1.compareTo(value2);
	}

}
